import { Module, OnApplicationBootstrap, OnModuleInit } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';

@Module({
  controllers: [UserController],
  providers: [UserService],
})
export class UserModule implements OnModuleInit, OnApplicationBootstrap {
  onModuleInit() {
    console.log('UserModule onModuleInit');
  }

  onApplicationBootstrap() {
    console.log('UserModule onApplicationBootstrap');
  }
}
